-- Draw lots of rects, log how long time it takes.

timeStamp1 = maGetMilliSecondCount()

n = 0
while n < 1000 do
  maSetColor(n)
  maFillRect(0, 0, 100, 100)
  maUpdateScreen()
  n = n + 1
end

timeStamp2 = maGetMilliSecondCount()

System.log("Lua test took " .. (timeStamp2 - timeStamp1) .. " ms")